﻿<UserControl x:Class="Vtron.LEDCorrective.Pages.CameraParameters"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="600" d:DesignWidth="800"
             xmlns:mui="http://firstfloorsoftware.com/ModernUI">
    <UserControl.Resources>
        <Style x:Key="TextBlockStyle" TargetType="TextBlock">
            <Setter Property="HorizontalAlignment" Value="Right"/>
            <Setter Property="Margin" Value="0,0,5,0"/>
            <Setter Property="FontSize" Value="13.333"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
        </Style>
        <Style x:Key="TextBoxStyle" TargetType="TextBox">
            <Setter Property="Width" Value="350"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="5,3,0,3"/>
            <Setter Property="BorderThickness" Value="0,0,0,1"/>
            <Setter Property="BorderBrush" Value="Black"/>
            <Setter Property="Background" Value="{x:Null}"/>
        </Style>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Text="相机参数" Margin="20,20,40,8" FontSize="18"/>
        <Line Grid.Row="1" Height="1" Stretch="Fill" X2="1" Stroke="#cccccc" StrokeDashArray="1, 1"  StrokeThickness="2" Margin="20,0,20,5" />

        <Grid Grid.Row="2" Margin="20,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <mui:BBCodeBlock Grid.ColumnSpan="2" Margin="0,0,0,10" BBCode="[b]提示：[/b]调节相机参数，控制相机镜头进光量，避免成像过曝，使饱和度处于“正常”。"/>
            
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions >
                <TextBlock Text="颜色" Margin="5" Grid.Column="0" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="校正亮度" Margin="5" Grid.Column="1" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="曝光时间" Margin="5" Grid.Column="2" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="光圈大小" Margin="5" Grid.Column="3" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="自动调节" Margin="5" Grid.Column="4" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="饱和度" Margin="5" Grid.Column="5" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="结果" Margin="5" Grid.Column="6" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="查看图像" Margin="5" Grid.Column="7" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="自动调节" Margin="5" Grid.Column="4" Grid.Row="0" FontSize="16"/>
                <TextBlock Text="红色" Grid.Column="0"  Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
                <TextBlock Text="绿色" Grid.Column="0"  Grid.Row="2" Style="{StaticResource TextBlockStyle}"/>
                <TextBlock Text="蓝色" Grid.Column="0"  Grid.Row="3" Style="{StaticResource TextBlockStyle}"/>
                <ComboBox Margin="1" Grid.Row="1" Grid.Column="1" MinWidth="100"/>
                <ComboBox Margin="1" Grid.Row="1" Grid.Column="2" MinWidth="100" x:Name="redTv_ComboBox"/>
                <ComboBox Margin="1" Grid.Row="1" Grid.Column="3" MinWidth="100" x:Name="redAv_ComboBox"/>
                <ComboBox Margin="1" Grid.Row="2" Grid.Column="1" MinWidth="100"/>
                <ComboBox Margin="1" Grid.Row="2" Grid.Column="2" MinWidth="100" x:Name="greenTv_ComboBox"/>
                <ComboBox Margin="1" Grid.Row="2" Grid.Column="3" MinWidth="100" x:Name="greenAv_ComboBox"/>
                <ComboBox Margin="1" Grid.Row="3" Grid.Column="1" MinWidth="100"/>
                <ComboBox Margin="1" Grid.Row="3" Grid.Column="2" MinWidth="100" x:Name="blueTv_ComboBox"/>
                <ComboBox Margin="1" Grid.Row="3" Grid.Column="3" MinWidth="100" x:Name="blueAv_ComboBox"/>
                <Button Content="自动调节" x:Name="AutoAdjRed" Grid.Column="4"  Grid.Row="1" VerticalAlignment="Center" Width="97" Height="26" FontSize="12.333"/>
                <Button Content="自动调节" x:Name="AutoAdjGreen" Grid.Column="4"  Grid.Row="2" VerticalAlignment="Center" Width="97" Height="26" FontSize="12.333"/>
                <Button Content="自动调节" x:Name="AutoAdjBlue" Grid.Column="4"  Grid.Row="3" VerticalAlignment="Center" Width="97" Height="26" FontSize="12.333"/>
                <Label Content="" x:Name="SRed" Grid.Column="5" Grid.Row="1"  Margin="1" />
                <Label Content="" x:Name="SGreen" Grid.Column="5" Grid.Row="2"  Margin="1" />
                <Label Content="" x:Name="SBlue" Grid.Column="5" Grid.Row="3"  Margin="1" />
                <Label Content="" x:Name="ResultRed" Grid.Column="6" Grid.Row="1"  Margin="1" />
                <Label Content="" x:Name="ResultGreen" Grid.Column="6" Grid.Row="2"  Margin="1" />
                <Label Content="" x:Name="ResultBlue" Grid.Column="6" Grid.Row="3"  Margin="1" />
                
                <Border BorderBrush="Black" BorderThickness="1" Grid.ColumnSpan="8"  Margin="1" Grid.RowSpan="1" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.ColumnSpan="8"  Margin="1" Grid.RowSpan="2" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.ColumnSpan="8"  Margin="1" Grid.RowSpan="3" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.ColumnSpan="8"  Margin="1" Grid.RowSpan="4" />

                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="1" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="2" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="3" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="4" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="5" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="6" />
                <Border BorderBrush="Black" BorderThickness="1" Grid.RowSpan="4"  Margin="1" Grid.ColumnSpan="7" />
            </Grid>
            
        </Grid>
    </Grid>
</UserControl>
